From 8e5c0bc98051f895a3132c0f38ac46f157a3f2c0 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Tue, 28 Nov 2006 12:50:37 +0000 Subject: [PATCH] Fix conversion of coordinates. --- gpsbabel/pathaway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/pathaway.c b/gpsbabel/pathaway.c index 231b7a329..bede7b1cf 100644 --- a/gpsbabel/pathaway.c +++ b/gpsbabel/pathaway.c @@ -271,7 +271,7 @@ double ppdb_decode_coord(const char *str) if (*str == 'O') german_release = 1; tmp = strchr(str, ' '); - if ((tmp) && (tmp - str < 4)) + if ((tmp) && (tmp - str < 5)) { CHECK_INP(3, sscanf(str,"%c%d %lf", &dir, °, &val), "decode_coord(2)"); val = deg + (val / 60.0); -- 2.30.2